﻿using System;
using MyWeb.Business;

namespace MyWeb.Controls
{
    public partial class u_NavContent : System.Web.UI.UserControl
    {
        private string _url = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            _url = Request.Url.ToString();
            if(!IsPostBack)
            {
                ShowNav();
            }
        }
        private void ShowNav()
        {
            var list = ConfigService.Config_GetById("1");
            if (list.Count > 0)
            {
                ltrNav.Text += "<marquee behavior=\"scroll\" scrollamount=\"3\" direction=\"left\">" + list[0].Wellcome + "</marquee>";
            }
            else
            {
                ltrNav.Text = "";
            }
            //<marquee behavior="scroll" scrollamount="3" direction="left">Chào mừng bạn đến với website Biztech.vn</marquee>
        }
    }
}